package com.mall.shopping.dto;

import com.mall.commons.result.AbstractResponse;
import lombok.Data;

@Data
public class UpdateCartProductRequest extends AbstractResponse {
    Long productId;
    Long userId;

    public void requestCheck() {
        if (productId == null || productId < 0) {
            throw new RuntimeException("参数校验失败");
        }
    }
}
